package card.player;

import java.util.List;

/**
 * @description: 玩家抽象类
 * @author: ly
 * @date: 2020/8/20 17:02
 */
public abstract class AbstractPlayer implements Player{
    /**
     * 玩家标识
     */
    protected String id;

    /**
     * 玩家持有的牌
     */
    protected List<String> cardList;

    /**
     * 当前牌的数量
     */
    protected int cardNum;

    public String getId() {
        return id;
    }

    protected AbstractPlayer(String id) {
        this.id = id;
    }

    public List<String> getCardList() {
        return cardList;
    }

    public int getCardNum() {
        return cardList.size();
    }
}
